<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Exercises</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Advanced Bash-Scripting Guide"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Converting DOS Batch Files to Shell Scripts"
HREF="dosbatch.html"><LINK
REL="NEXT"
TITLE="Analyzing Scripts"
HREF="scriptanalysis.html"></HEAD
><BODY
CLASS="APPENDIX"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Advanced Bash-Scripting Guide: </TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="dosbatch.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="scriptanalysis.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="APPENDIX"
><H1
><A
NAME="EXERCISES"
></A
>Appendix O. Exercises</H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>O.1. <A
HREF="scriptanalysis.html"
>Analyzing Scripts</A
></DT
><DT
>O.2. <A
HREF="writingscripts.html"
>Writing Scripts</A
></DT
></DL
></DIV
><P
>The exercises that follow test and extend your knowledge
	of scripting. Think of them as a challenge, as an entertaining way
	to take you further along the stony path toward UNIX wizardry.</P
><P
>      <P
CLASS="LITERALLAYOUT"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;On&nbsp;a&nbsp;dingy&nbsp;side&nbsp;street&nbsp;in&nbsp;a&nbsp;run-down&nbsp;section&nbsp;of&nbsp;Hoboken,&nbsp;New&nbsp;Jersey,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;there&nbsp;sits&nbsp;a&nbsp;nondescript&nbsp;squat&nbsp;two-story&nbsp;brick&nbsp;building&nbsp;with&nbsp;an&nbsp;inscription<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;incised&nbsp;on&nbsp;a&nbsp;marble&nbsp;plate&nbsp;in&nbsp;its&nbsp;wall:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<TT
CLASS="COMPUTEROUTPUT"
>Bash Scripting Hall of Fame</TT
>.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inside,&nbsp;among&nbsp;various&nbsp;dusty&nbsp;uninteresting&nbsp;exhibits&nbsp;is&nbsp;a&nbsp;corroding,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cobweb-festooned&nbsp;brass&nbsp;plaque&nbsp;inscribed&nbsp;with&nbsp;a&nbsp;short,&nbsp;very&nbsp;short<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list&nbsp;of&nbsp;those&nbsp;few&nbsp;persons&nbsp;who&nbsp;have&nbsp;successfully&nbsp;mastered&nbsp;the&nbsp;material<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in&nbsp;the&nbsp;<I
CLASS="FIRSTTERM"
>Advanced Bash Scripting Guide</I
>,&nbsp;as&nbsp;evidenced&nbsp;by&nbsp;their&nbsp;performance<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;on&nbsp;the&nbsp;following&nbsp;Exercise&nbsp;sections.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Alas,&nbsp;the&nbsp;author&nbsp;of&nbsp;the&nbsp;<I
CLASS="FIRSTTERM"
>ABS Guide</I
>&nbsp;is&nbsp;not&nbsp;represented&nbsp;among&nbsp;the&nbsp;exhibits.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;is&nbsp;possibly&nbsp;due&nbsp;to&nbsp;malicious&nbsp;rumors&nbsp;about&nbsp;<A
HREF="aboutauthor.html#NOCREDS"
>lack of credentials</A
>&nbsp;and<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A
HREF="contributed-scripts.html#KTOUR0"
>deficient scripting skills</A
>.)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</P
>
      </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="dosbatch.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="scriptanalysis.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Converting DOS Batch Files to Shell Scripts</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Analyzing Scripts</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>